package reduce.fz.com.reduce.service.validate;

import android.text.TextUtils;

import reduce.fz.com.reduce.R;
import reduce.fz.com.reduce.bean.result.Result;
import reduce.fz.com.reduce.util.InputMethodUtil;
import reduce.fz.com.reduce.util.PatternUtil;

/**
 * Created by qingshengzheng on 15/11/24.
 */
public class UserValidate {
    /**
     * 手机号验证
     */
    public static Boolean mobileCheck(String mobile) {
        if (TextUtils.isEmpty(mobile)) {
            return false;
        }
        if (!PatternUtil.isMobile(mobile)) {
            return false;
        }
        return true;
    }

    /**
     * 密码验证
     *
     * @return
     */
    public static boolean passwordCheck(String password) {
        if (TextUtils.isEmpty(password)) {
            return false;
        }
        if (password.length() <= 6) {
            return false;
        }
        return true;
    }

}
